import request from '@/utils/request';

// 获取用户信息
export function getUserInfo() {
  return request({
    url: '/oauth2/get_user_info',
    method: 'get'
  });
}

// 退出登录
export function loginOut() {
  return request({
    url: '/oauth2/login_out',
    method: 'get'
  });
}

// oauth2-callback
export function oauth2Callback(data) {
  return request({
    url: '/oauth2/callback',
    method: 'get',
    params: data
  });
}